Hoffman2 Happy Hour
🎉 Welcome to the Hoffman2 Happy Hours
📧 cpeterson@oarc.ucla.edu
This presentation and accompanying materials are available on UCLA OARC GitHub Repository 🔗 https://github.com/ucla-oarc-hpc
You can view the slides:
A powerful IDE for R, data visualization, and script management
But why do you want to use RStudio on Hoffman2 when you can use your own computer???
RStudio on Hoffman2 provides access to:
There are two main (free) RStudio formats that researchers can use
Standalone desktop application
Installed locally on your machine
RStudio Desktop can be inefficient on Hoffman2
RStudio Server is the best way to use RStudio on Hoffman2
RStudio Server on Hoffman2 created from Docker
apptainer run
-B $SCRATCH/rstudiotmp/[dir]:[/dir]
$H2_CONTAINER_LOC/h2-rstudio_4.1.0.sif
ssh -N -L ... info to be ranNote
KEEP THIS TERMINAL OPEN UNTIL YOU JOB IS DONE
Open another terminal on your local computer
Run the port forward command
8787 if needednXXX is the compute node nameusername is your Hoffman2 username8787 if neededh2_rstudio.sh
h2-studio.sh Information
Look at our Github page
Tested Platforms
✅ Mac’s terminal app
✅ Window’s WSL2
✅ MoboXterm
❌ GitBash
This RStudio Script is currently on our GitHub page
$H2_CONTAINER_LOCh2-rstudio_X.Y.Z.sifX.Y.Z is the R version~/R/APPTAINER/h2-rstudio_4.1.0 (for h2_rstudio-4.1.0.sif)R Package Installs
apptainer run#!/bin/bash
#$ -cwd
#$ -o rstudio_batch.out.$JOB_ID
#$ -j y
#$ -l h_rt=3:00:00,h_data=10G
#$ -pe shared 1
# Load Apptainer module
. /u/local/Modules/default/init/modules.sh
module load apptainer
# Run R with a R script, named myRtest.R
apptainer run $H2_CONTAINER_LOC/h2-rstudio_4.1.0.sif R CMD BATCH myRtest.Rh2_rstudio.sh script for easy setup